#version 130

uniform sampler2D diffuse;

void main()
{
  gl_FragColor = gl_Color * texture2D(diffuse, gl_TexCoord[0].xy);
  if (gl_FragColor.a < 0.5)
    {
      discard;
    }
}
